#ifndef CHEBYSHEV_4TH_256_H_
#define CHEBYSHEV_4TH_256_H_

#include <Arduino.h>
#include "mozzi_pgmspace.h"

/* table for waveshaper using chebyshev polynomials
*/

#define CHEBYSHEV_4TH_256_NUM_CELLS 256
CONSTTABLE_STORAGE(int8_t) CHEBYSHEV_4TH_256_DATA [] =
        {
 	127, 112, 97, 82, 68, 55, 42, 30, 19, 7, -2, -12, 
	-22, -31, -39, -48, -55, -62, -69, -76, -82, -87, -92, -97, 
	-101, -105, -109, -112, -115, -118, -120, -122, -123, -125, -126, -127, 
	-127, -127, -127, -127, -127, -126, -125, -124, -123, -121, -119, -117, 
	-115, -113, -111, -108, -105, -102, -99, -96, -93, -90, -86, -83, 
	-79, -75, -71, -67, -63, -59, -55, -51, -47, -43, -39, -34, 
	-30, -26, -21, -17, -13, -8, -4, 0, 4, 8, 12, 17, 
	21, 25, 29, 33, 37, 41, 45, 49, 53, 57, 60, 64, 
	67, 71, 74, 78, 81, 84, 87, 90, 93, 96, 98, 101, 
	103, 105, 108, 110, 112, 114, 115, 117, 119, 120, 121, 122, 
	124, 124, 125, 126, 126, 127, 127, 127, 127, 127, 127, 127, 
	126, 126, 125, 124, 124, 122, 121, 120, 119, 117, 115, 114, 
	112, 110, 108, 105, 103, 101, 98, 96, 93, 90, 87, 84, 
	81, 78, 74, 71, 67, 64, 60, 57, 53, 49, 45, 41, 
	37, 33, 29, 25, 21, 17, 12, 8, 4, 0, -4, -8, 
	-13, -17, -21, -26, -30, -34, -39, -43, -47, -51, -55, -59, 
	-63, -67, -71, -75, -79, -83, -86, -90, -93, -96, -99, -102, 
	-105, -108, -111, -113, -115, -117, -119, -121, -123, -124, -125, -126, 
	-127, -127, -127, -127, -127, -127, -126, -125, -123, -122, -120, -118, 
	-115, -112, -109, -105, -101, -97, -92, -87, -82, -76, -69, -62, 
	-55, -48, -39, -31, -22, -12, -2, 7, 19, 30, 42, 55, 
	68, 82, 97, 112, 
        };

#endif /* CHEBYSHEV_4TH_256_H_ */
